package com.dianping.cat.alarm;

import java.util.Arrays;
import java.util.Date;
import org.unidal.dal.jdbc.DataObject;






















public class Alert
  extends DataObject
{
  private int m_id;
  private String m_domain;
  private Date m_alertTime;
  private String m_category;
  private String m_type;
  private String m_content;
  private String m_metric;
  private Date m_creationDate;
  private int m_keyId;
  private Date m_startTime;
  private Date m_endTime;
  private String[] m_categories;

  public void afterLoad() {
/*  45 */     this.m_keyId = this.m_id;
/*  46 */     clearUsage();
  }


/*  50 */   public Date getAlertTime() { return this.m_alertTime; }



/*  54 */   public String[] getCategories() { return this.m_categories; }



/*  58 */   public String getCategory() { return this.m_category; }



/*  62 */   public String getContent() { return this.m_content; }



/*  66 */   public Date getCreationDate() { return this.m_creationDate; }



/*  70 */   public String getDomain() { return this.m_domain; }



/*  74 */   public Date getEndTime() { return this.m_endTime; }



  public int getId() { return this.m_id; }



/*  82 */   public int getKeyId() { return this.m_keyId; }



/*  86 */   public String getMetric() { return this.m_metric; }



/*  90 */   public Date getStartTime() { return this.m_startTime; }



/*  94 */   public String getType() { return this.m_type; }


  public Alert setAlertTime(Date alertTime) {
/*  98 */     setFieldUsed(AlertEntity.ALERT_TIME, true);
/*  99 */     this.m_alertTime = alertTime;
/* 100 */     return this;
  }

  public Alert setCategories(String[] categories) {
/* 104 */     setFieldUsed(AlertEntity.CATEGORIES, true);
/* 105 */     this.m_categories = categories;
/* 106 */     return this;
  }

  public Alert setCategory(String category) {
/* 110 */     setFieldUsed(AlertEntity.CATEGORY, true);
/* 111 */     this.m_category = category;
/* 112 */     return this;
  }

  public Alert setContent(String content) {
/* 116 */     setFieldUsed(AlertEntity.CONTENT, true);
/* 117 */     this.m_content = content;
/* 118 */     return this;
  }

  public Alert setCreationDate(Date creationDate) {
/* 122 */     setFieldUsed(AlertEntity.CREATION_DATE, true);
/* 123 */     this.m_creationDate = creationDate;
/* 124 */     return this;
  }

  public Alert setDomain(String domain) {
/* 128 */     setFieldUsed(AlertEntity.DOMAIN, true);
/* 129 */     this.m_domain = domain;
/* 130 */     return this;
  }

  public Alert setEndTime(Date endTime) {
/* 134 */     setFieldUsed(AlertEntity.END_TIME, true);
/* 135 */     this.m_endTime = endTime;
/* 136 */     return this;
  }

  public Alert setId(int id) {
/* 140 */     setFieldUsed(AlertEntity.ID, true);
/* 141 */     this.m_id = id;

/* 143 */     setFieldUsed(AlertEntity.KEY_ID, true);
/* 144 */     this.m_keyId = id;
/* 145 */     return this;
  }

  public Alert setKeyId(int keyId) {
/* 149 */     setFieldUsed(AlertEntity.KEY_ID, true);
/* 150 */     this.m_keyId = keyId;
/* 151 */     return this;
  }

  public Alert setMetric(String metric) {
/* 155 */     setFieldUsed(AlertEntity.METRIC, true);
/* 156 */     this.m_metric = metric;
/* 157 */     return this;
  }

  public Alert setStartTime(Date startTime) {
/* 161 */     setFieldUsed(AlertEntity.START_TIME, true);
/* 162 */     this.m_startTime = startTime;
/* 163 */     return this;
  }

  public Alert setType(String type) {
/* 167 */     setFieldUsed(AlertEntity.TYPE, true);
/* 168 */     this.m_type = type;
/* 169 */     return this;
  }


  public String toString() {
/* 174 */     StringBuilder sb = new StringBuilder(1024);

/* 176 */     sb.append("Alert[");
/* 177 */     sb.append("alert-time: ").append(this.m_alertTime);
/* 178 */     sb.append(", categories: ").append((this.m_categories == null) ? null : Arrays.asList(this.m_categories));
/* 179 */     sb.append(", category: ").append(this.m_category);
/* 180 */     sb.append(", content: ").append(this.m_content);
/* 181 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 182 */     sb.append(", domain: ").append(this.m_domain);
/* 183 */     sb.append(", end-time: ").append(this.m_endTime);
/* 184 */     sb.append(", id: ").append(this.m_id);
/* 185 */     sb.append(", key-id: ").append(this.m_keyId);
/* 186 */     sb.append(", metric: ").append(this.m_metric);
/* 187 */     sb.append(", start-time: ").append(this.m_startTime);
/* 188 */     sb.append(", type: ").append(this.m_type);
/* 189 */     sb.append("]");
/* 190 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/Alert.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */